const path = require("path");
const fs = require("fs");

const configPath = path.join(
  __dirname,
  "./node_modules/react-scripts/config/webpack.config.js"
);
const customConfigPath = path.join(__dirname, "../config/webpack.config.js");

const content = fs.readFileSync(customConfigPath, "utf8");
fs.writeFileSync(configPath, content);
